package com.bjpowernode.rbac.mapper;

import com.bjpowernode.rbac.entity.Employee;
import com.bjpowernode.rbac.entity.Permission;
import com.bjpowernode.rbac.query.QueryObject;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByCondition(QueryObject queryObject);

    void deleteAll();

    List<Permission> selectPermissionByEmpId(Employee employee);
}